From: Jan Beulich Date: Thu, 23 Jan 2014 09:29:12 +0000 (+0100) Subject: unmodified_drivers: make usbfront build conditional X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5655 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=b2625bef58b66a012df2f759a1fb7ba50d139f7d;p=xen.git unmodified_drivers: make usbfront build conditional Commit 0dcfb88fb8 ("unmodified_drivers: enable build of usbfront driver") results in the PV drivers to no longer build against older (pre-2.6.35) Linux versions. That's because usbfront.h includes headers from drivers/usb/core/, which is generally unavailable when building out-of-tree modules. Signed-off-by: Jan Beulich --- diff --git a/unmodified_drivers/linux-2.6/usbfront/Kbuild b/unmodified_drivers/linux-2.6/usbfront/Kbuild index f44deaaec5..321a35a122 100644 --- a/unmodified_drivers/linux-2.6/usbfront/Kbuild +++ b/unmodified_drivers/linux-2.6/usbfront/Kbuild @@ -1,5 +1,7 @@ include $(M)/overrides.mk -obj-m += xen-usb.o +obj-m += $(if $(shell grep '^\#include "\.\./\.\./' $(obj)/usbfront.h), \ + $(warning usbfront cannot be built), \ + xen-usb.o) xen-usb-objs := usbfront-hcd.o xenbus.o